<ul class="nav nav-tabs">
	<?php
	if ($this->uri->segment(3) === "department" OR !$this->uri->segment(3)) {
		?>
		<li class="active"><?php echo anchor('department/show_department/department', 'Department'); ?></li>
		<li><?php echo anchor('department/show_department/sub_department', 'Sub Department'); ?></li>
		<?php
	} else if ($this->uri->segment(3) === "sub_department") {
		?>
		<li><?php echo anchor('department/show_department/department', 'Department'); ?></li>
		<li class="active"><?php echo anchor('department/show_department/sub_department', 'Sub Department'); ?></li>
		<?php
	}
	?>
</ul>